package com.asy.ui.base;


import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xinzhang.R;

public class CommentCache {

	 private View baseView;  
     private TextView usercontentTextView;
     private TextView usernameTextView;
     private TextView usertimeTextView;
     private Button btncallButton;
     private ImageView userimageView;  
     

     public CommentCache(View baseView) {  
         this.baseView = baseView;  
     }  
 
    public Button getBtncallButton() {
    	  if (btncallButton == null) {  
         	 
    		  btncallButton = (Button) baseView.findViewById(R.id.btn_callback);  
          }  
          return btncallButton;  
	}

	public ImageView getUserImageView() {  
         if (userimageView == null) {  
        	 
        	 userimageView = (ImageView) baseView.findViewById(R.id.commentuser_image);  
         }  
         return userimageView;  
     }

	public TextView getUserContentTextView() {
		if(usercontentTextView==null)
		{
			usercontentTextView=(TextView)baseView.findViewById(R.id.commentuser_content);
		}
		return usercontentTextView;
	}

	

	public TextView getUserNameTextView() {
		if(usernameTextView==null)
		{
			usernameTextView=(TextView)baseView.findViewById(R.id.commentuser_name);
		}
		return usernameTextView;
	}

	public TextView getUserTimeTextView() {
		
		if(usertimeTextView==null)
		{
			usertimeTextView=(TextView)baseView.findViewById(R.id.commentuser_time);
		}
		return usertimeTextView;
	}

}
